#include<stdio.h>
int main()
{
	int a,n;
	scanf("%d%d",&a,&n);
	int sum=0;
	int result=0;
	for(int i=1;i<=n;i++)
	{
		sum=10*sum+a;
		result+=sum;
	}
	printf("s = %d",result);
}
